//
//  UITextField+Property.m
//  APP
//
//  Created by huanchi on 15/12/22.
//  Copyright © 2015年 上海欢炽网络科技有限公司. All rights reserved.
//

#import "UITextField+Property.h"


@implementation UITextField (Property)

-(void)textFieldWithFont:(UIFont *)font textColor:(UIColor *)textColor placeholder:(NSString *)placeholder{
    [self textFieldWithFont:font textColor:textColor placeholder:placeholder leftSpace:0];
}

-(void)textFieldWithFont:(UIFont *)font textColor:(UIColor *)textColor placeholder:(NSString *)placeholder leftSpace:(CGFloat)space{
    self.font = font;
    self.textColor = textColor;
    self.placeholder = placeholder;
    self.leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, space, 44)];
    self.leftViewMode = UITextFieldViewModeAlways;
}
@end
